package com.xu.mapper;

import com.xu.pojo.Vouchers;
import com.xu.pojo.Vouchers_user;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestParam;

@Mapper
@Repository
public interface Vouchers_userMapper {

    @Insert("insert into bread.vouchers_user (vid,uid) values (#{vid},#{uid})")
    int vouchersGet(Vouchers_user vouchers);

    @Select("select * from vouchers_user where vid=#{vid} and uid=#{uid}")
    Vouchers_user queryVouchersByVidUid(Vouchers_user vouchers);

}
